/**
 * 
 */
package ink.zhaohui.book.service;


import ink.zhaohui.book.vo.BookVO;
import ink.zhaohui.book.vo.Page;

/**
 * @author ccc
 *
 */
public interface IBookService {
	/**
	 * 
	 * @param uuid
	 * @return
	 */
	public BookVO queryOneByUuid(String uuid);

	/**
	 * 
	 * @param orderUuid
	 * @return
	 */
	public BookVO queryOneByOrderUuid(String orderUuid);

	/**
	 * 
	 * @param name
	 * @param pageSize
	 * @param at
	 * @return
	 */
	public Page<BookVO> queryMore(String name, int pageSize, int at);

	/**
	 * 订一个货
	 * 
	 * @param bookBO
	 * @return
	 */
	public BookVO bookOne(BookVO bookVO);

	/**
	 * 取消一个订货
	 * 
	 * @param uuid
	 * @return
	 */
	public int cancelBook(String uuid);

	/**
	 * 完成一个订货
	 * 
	 * @param uuid
	 * @return
	 */
	public int finishBook(String uuid);

	/**
	 * 取消一个完成的订货
	 * 
	 * @param uuid
	 * @return
	 */
	public int cancelFinishBook(String uuid);
}
